#include "Clock.h"

Clock::Clock()
    : previousTime(SDL_GetTicks())
{
}

Clock::~Clock()
{
}

Uint32 Clock::getMSeconds()
{
    Uint32 currentTime = SDL_GetTicks();
    Uint32 msSinceLastLoop =  currentTime - previousTime;
    previousTime = currentTime;
    return msSinceLastLoop;
}

